package 数据结构.章节09._145_基于数组实现线性表;

/**
 * @author 挚爱之夕
 * @date 2021/10/5 - 10 - 05 - 16:38
 * @Description: 数据结构.章节09._145_基于数组实现线性表
 * @Version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList<String> arrayList = new MyArrayList<String>();
        /*添加*/
        arrayList.add("1");
        arrayList.add("2");
        arrayList.add("3");
        System.out.println(arrayList);
        /*删除*/
        arrayList.delete("1");
        System.out.println(arrayList);
        /*判读是否包含*/
        System.out.println(arrayList.contains("5"));
        /*修改*/
        arrayList.modify(1, "22");
        System.out.println(arrayList);
        /*查找*/
        System.out.println(arrayList.find("2"));
    }
}
